package com.leo.foodmaster.admin.recipe.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.leo.foodmaster.commons.entity.BaseEntity;
import com.leo.foodmaster.commons.entity.File;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 菜品模板
 *
 * @author Leo
 * @since 1.0.0 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("recipe_template")
@Accessors(chain = true)
public class RecipeTemplateEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

    /**
     * 菜品模板类型Id
     */
	private Long recipeTypeId;
	/**
	 * 菜品模板类型Id
	 */
	private String recipeTypeName;

    /**
     * 所属公司Id
     */
	private Long organId;
	/**
	 * 菜品状态：0（正常）1（停用）
	 */
	private String status;
    /**
     * 重量
     */
	private BigDecimal weight;
    /**
     * 分配单位
     */
	private Integer expressionUnit;
    /**
     * 菜品价格
     */
	private BigDecimal price;
    /**
     * 菜品图片
     */
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<File> pics = new ArrayList<>();
}
